import Http from "@/api/useServerRequest";
import HttpServer from "@/api/useServerRequest";

/**
 * @description 头部导航
 */
export const getNavHead = () => {
  return Http.get("/prod-api/api/programa/buildProgramaTree");
};

/**
 * @description 头部导航
 */
export const getNavHeadServer = () => {
  return HttpServer.get("/prod-api/api/programa/buildProgramaTree");
};

export const getSeoInfoServer = (route: string) => {
  return HttpServer.get("/prod-api/api/seo/",{
    route
  });
}

// 网站底部信息
export const getWebSiteBaseInfo = ()=>{
  return HttpServer.get("/prod-api/api/home/getDetails");
}
// 每个页面顶部的banner信息
export const getWebBanner = (bannerType:string|number)=>{
  return HttpServer.get("/prod-api/api/banner/selectBannerByBannerType/"+bannerType);
}

// 友情链接
export const getLinks = ()=>{
  return HttpServer.get("/prod-api/api/links/list");
}
